Cheatsheets
If you have installed from our guide, you do not need to make any changes in the codes below unless stated otherwise.
Service Operationsβ
Checking Logsβ
journalctl -fu okp4d -o cat
Starting Nodeβ
systemctl start okp4d
Stopping the Nodeβ
systemctl stop okp4d
Restarting the Nodeβ
systemctl restart okp4d
Node Sync Statusβ
okp4d status 2>&1 | jq .SyncInfo
Node Informationβ
okp4d status 2>&1 | jq .NodeInfo
Learning Node IDβ
okp4d tendermint show-node-id
Learning Node IP Addressβ
curl icanhazip.com
Your node peerβ
echo $(okp4d tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.okp4d/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Wallet Managementβ
Viewing the List of Walletsβ
okp4d keys list
Seeing Wallet Addressβ
okp4d keys show $OKP4_WALLET --bech val -a
Importing Walletβ
okp4d keys add $OKP4_WALLET --recover
Deleting Your Walletβ
okp4d keys delete $OKP4_WALLET
Checking Wallet Balanceβ
okp4d query bank balances $OKP4_WALLET_ADDRESS
Tokensβ
Transferring from One Wallet to Anotherβ
okp4d tx bank send $OKP4_WALLET_ADDRESS SENDING_CUZDAN_ADRESI 100000000uknow
Participating in Proposal Votingβ
okp4d tx gov vote 1 yes --from $OKP4_WALLET --chain-id=$OKP4_CHAIN_ID --gas-prices 0.00001uknow --gas-adjustment 1.5 --gas auto -y
Validatore Staking / Delegationβ
okp4d tx staking delegate $OKP4_VALOPER_ADDRESS 100000000uknow --from=$OKP4_WALLET --chain-id=$OKP4_CHAIN_ID --gas-prices 0.00001uknow --gas-adjustment 1.5 --gas auto -y
Unbondingβ
okp4d tx staking unbond $(okp4d keys show $OKP4_WALLET --bech val -a) 1000000uknow --from $OKP4_WALLET --chain-id indigo-1 --fees 3000uknow -y
Staking / Redelegate from Current Validator to Other Validatorβ
srcValidatorAddress
: Address of the current staked validator
destValidatorAddress
: Address of the new validator to be staked
okp4d tx staking redelegate srcValidatorAddress destValidatorAddress 100000000uknow --from=$OKP4_WALLET --chain-id=$OKP4_CHAIN_ID --gas-prices 0.00001uknow --gas-adjustment 1.5 --gas auto -y
Withdraw Rewardsβ
okp4d tx distribution withdraw-all-rewards --from=$OKP4_WALLET --chain-id=$OKP4_CHAIN_ID --gas-prices 0.00001uknow --gas-adjustment 1.5 --gas auto -y
Withdrawing Commission Rewardsβ
okp4d tx distribution withdraw-rewards $OKP4_VALOPER_ADDRESS --from=$OKP4_WALLET --commission --chain-id=$OKP4_CHAIN_ID --gas-prices 0.00001uknow --gas-adjustment 1.5 --gas auto -y
Validator operationsβ
Validator Informationβ
okp4d status 2>&1 | jq .ValidatorInfo
Changing Validator Nameβ
Write your new validator/moniker name where it says 'NEW-NODE-NAME'. It should not contain TR characters.
okp4d tx staking edit-validator \
--new-moniker=NEW-NODE-NAME\
--chain-id=$OKP4_CHAIN_ID\
--from=$OKP4_WALLET\
--gas-prices 0.00001uknow\
--gas-adjustment 1.5\
--gas auto -y
Changing Validator Commission Rateβ
We change the value in the section that says 'commission-rate'.
okp4d tx staking edit-validator --commission-rate "0.02" --moniker=$OKP4_NODENAME --from $OKP4_WALLET --chain-id $OKP4_CHAIN_ID --gas-prices 0.00001uknow --gas-adjustment 1.5 --gas auto - y
Editing Your Validator Informationβ
Before changing this information, you must register at https://keybase.io/ and receive your 16-digit code (XXXX0000XXXX0000) as seen in the code below. Also profile picture etc. You can also adjust the settings.
$OKP4_NODENAME
and $OKP4_WALLET
: Your Validator (Moniker) and wallet name, you do not need to change it. Because we added it to variables.
okp4d tx staking edit-validator \
--moniker=$OKP4_NODENAME\
--identity=XXXX0000XXXX0000\
--website="YOU CAN WRITE YOUR WEBSITE IF YOU EXIST" \
--details="YOU CAN WRITE A SENTENCE INTRODUCING YOURSELF IN THIS SECTION" \
--chain-id=$OKP4_CHAIN_ID\
--from=$OKP4_WALLET
Validator Detailsβ
okp4d q staking validator $(okp4d keys show $WALLET --bech val -a)
Jailing infoβ
okp4d q slashing signing-info $(okp4d tendermint show-validator)
Slashing parametersβ
okp4d q slashing params
Recovering Validator from Jailβ
okp4d tx slashing unjail --from $OKP4_WALLET --chain-id $OKP4_CHAIN_ID --gas-prices 0.00001uknow --gas-adjustment 1.5 --gas auto -y
Active Validators Listβ
okp4d q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
Checking Validator keyβ
[[ $(okp4d q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(okp4d status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing infoβ
okp4d q slashing signing-info $(okp4d tendermint show-validator)